package main

import (
	"fmt"
	"gin_web/config"
	"gin_web/databases"
	"github.com/gin-gonic/gin"
)

func main() {
	server := config.GConfig.Server
	databases.InitDB()
	r := gin.Default()
	CollectRoute(r)

	r.Run(fmt.Sprintf("%s:%d", server.Host, server.Port))
}
